﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="Them_SuaXoaLoaiPhuKien.aspx.cs" Inherits="Them_SuaXoaLoaiPhuKien" Title="Thêm sửa xoá loại phụ kiện" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp;Thêm &amp; Sửa &amp; Xóa Loại Phụ Kiện</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table style="width:400px" align="center">
        <tr>
            <td>
                    Mã loại phụ kiện:</td>
            <td>
                <asp:TextBox ID="txtmaloai" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                    Tên loại phụ kiện:</td>
            <td>
                <asp:TextBox ID="txttenloai" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: right">
                <asp:Button ID="Button1" runat="server" Text="Lưu" 
                        onclick="btnthem_Click" />
                    &nbsp;
                    <asp:Button ID="Button2" runat="server" Text="Làm Lại" 
                    onclick="Button2_Click" />
                <br />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="MaLoaiPK" onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                        onrowupdating="GridView1_RowUpdating" AllowPaging="True" 
                    BackColor="#CCCCCC" BorderColor="#999999" 
                        BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" 
                        ForeColor="Black" onpageindexchanging="GridView1_PageIndexChanging" 
                        PageSize="7" Width="400px">
                    <RowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="MaLoaiPK" HeaderText="Mã Loại" />
                        <asp:BoundField DataField="TenLoaiPK" HeaderText="Tên Loại PK" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" />
                    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

